package com.kitty.game.petBook;

import com.kitty.common.utils.SpringUtils;
import org.springframework.stereotype.Controller;
import com.kitty.mina.annotation.RequestMapping;
import com.kitty.game.pet.service.BookService;
import org.apache.mina.core.session.IoSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Controller
public class PetBookController {
    Logger logger = LoggerFactory.getLogger(PetBookController.class);

    @RequestMapping
    public void enableBook(IoSession session, ReqEnableBook reqEnableBook) {
        BookService bookService =SpringUtils.getBean(BookService.class);
        bookService.enableBook(session, reqEnableBook);
    }
}
